<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<!-- 月历 -->
<script type="text/javascript" charset="UTF-8" src="<%=application.getContextPath() %>/js/jquery.datepick.js"></script>
<script type="text/javascript" charset="UTF-8" src="<%=application.getContextPath() %>/js/jquery.datepick-zh-CN.js"></script>
<link rel="stylesheet" type="text/css" href="<%=application.getContextPath() %>/css/smoothness.datepick.css" />
<link rel="stylesheet" type="text/css" href="<%=application.getContextPath() %>/css/validator.css" />
<script language="javascript">
	$().ready( function() {
		$('#commentDtStParam').datepick({dateFormat:"yy-mm-dd"}); 
		$('#commentDtEdParam').datepick({dateFormat:"yy-mm-dd"});
	});
</script>
<h1>商品评价管理－查询</h1><s:form action="search.do" method="get" id="commentQuery">
<table width="800" class="tb-2">
        <tr>
          <th width="70">商品编号：</th>
          <td><input name="productIdParam" value="${productIdParam}" type="text" style="width:90px;"/></td>
          <th width="70">评价日期：</th>
          <td colspan="3"><input name="commentDtStParam" id="commentDtStParam" value="${commentDtStParam}" size="13" />
            ~
            <input name="commentDtEdParam" id="commentDtEdParam" value="${commentDtEdParam}" size="13" />
          </td>
          <th width="70">评价状态：</th>
          <td><s:select label="评价状态" name="commentStParam" headerKey="" headerValue="不限"
		list="approveStMenu.options" listKey="key" listValue="value.name" /></td>
        </tr>
        <tr>
          <th>订单编号：</th>
          <td><input name="orderId" type="text" value="${orderIdParam}" style="width:90px;"/></td>
          <th>会员编号：</th>
          <td><input name="memberIdParam" type="text" value="${memberIdParam}" style="width:90px;" size="10" /></td>
          <th width="70">会员帐号：</th>
          <td><input name="loginIdParam" type="text" value="${loginIdParam}" style="width:90px;" size="10" /></td>
          <th width="70">是否隐藏：</th>
          <td><s:select label="是否隐藏" name="hideStParam" headerKey="" headerValue="不限"
		list="hideYnStMenu.options" listKey="key" listValue="value.name" />
          </td>
        </tr>
      </table>
    <p><input type="submit" name="button" id="button" value="查询" />&nbsp;<input type="reset" name="button" id="button" value="清除" /></p>
</s:form>
<s:if test="commentList.size > 0">
	<yaodian100:pageutil link="search.do" pagerObj="${pager}" />
	<table width="100%" class="tb-1">
  <tr>
    <th width="80">评价编号</th>
    <th width="80">订单编号</th>
    <th width="80">商品编号</th>
    <th>商品名称</th>
    <th>会员<br />
      编号</th>
    <th>会员<br />
      帐号</th>
    <th width="80">申请日期</th>
    <th width="60">状态</th>
    <th width="60">不核可<br />
      次数</th>
    <th width="50">隐藏</th>
    <th>主旨</th>
  </tr>
<c:forEach items="${commentList}" var="comment" varStatus="rows_index">
<tr>
    <td><a href="loadComment.do?cmid=${comment.cmid}">${comment.cmid}</a></td>
    <td><a href="/ecadmin/order/view.do?orderId=${comment.orderId}" target="_blank">${comment.orderId}</a></td>
    <td><a href="<%=ServerValue.getFrontHostname()%>/ecmall/product/product.do?productId=${comment.productId}" target="_blank">${comment.productId}</a></td>
    <td><p>${comment.productName}</p></td>
    <td>${comment.memberId}</td>
    <td>${comment.loginId}</td>
    <td><fmt:formatDate value="${comment.createDate}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
    <td>${approveStMenu.options[comment.commentStatus].name}</td>
    <td>${comment.failCount}</td>
    <td>${hideYnStMenu.options[comment.hideYn].name}</td>
    <td><p>${comment.subject}</p></td>
  </tr>
</c:forEach>
</table>
<yaodian100:pageutil link="search.do" pagerObj="${pager}" />
</s:if>
